home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS Toolkit
/
BBS Toolkit.iso
/
wildcat
/
wcolor.zip
/
WAB.BAT
< prev
next >
Wrap
DOS Batch File
|
1992-06-01
|
763b
|
31 lines
@echo off
if "%1" == "" goto ERROR
if "%2" == "" goto ERROR
if "%2" == "*.*" goto REPEAT
if "%2" == "." goto REPEAT
wcolor -ia%1 -ob%2 -d%3
goto CHECK
:REPEAT
wcolor -ia%1 -ob%1 -d%3
:CHECK
if errorlevel 0 goto EXIT
goto ERROR
:ERROR
echo .
echo Batch format is "wab ansi_in_file bbs_out_file [speed]"
echo --} eg. "wab mainh.scr mainh.bbs 2400".
echo .
echo This example will display "mainh.scr" at roughly 2400 baud, and resave it
echo in file "mainh.bbs" - optimized! Leaving "speed" blank is equivalent to
echo entering "0".
echo .
echo Input and output file names may be unique to prevent overwriting original.
echo For the output file name, "*.*" or "." may be used to retain input file
echo name.
echo .
:EXIT